import {logTypes} from './logTypes'
import {formatDate} from "@/utils/common"

export const columns = [ // 进程策略
    {
        title: '日志类型',
        dataIndex: 'type',
        slots: {
            customRender: 'type'
        },
        slotsType: 'format',
        slotsFunc: (val) => (logTypes[val])
    },
    {
        title: '客户端Hash',
        dataIndex: 'clienthash',
    },
    {
        title: '日志时间',
        dataIndex: 'time',
        slots: {
            customRender: 'time'
        },
        slotsType: 'format',
        slotsFunc: (val) => formatDate(val)
    },
    {
        title: '事件内容',
        dataIndex: 'event',
    },
    {
        title: '事件等级',
        dataIndex: 'result',
    },
    {
        title: '记录人',
        dataIndex: 'username',
    },
    {
        title: '进程名',
        dataIndex: 'processname',
    },
    // {
    //     title: '客户端IP',
    //     dataIndex: 'clientip',
    // },
]
